package k2_oop.p9_collection.demo04;

public class Son extends Father{
    public int age;

    public Son(String name) {
        super(name);
    }

    public Son(String name, int age) {
        super(name);
        this.age = age;
    }

    @Override
    public String toString() {
        return "Son{" +
                "name="+name+
                "age=" + age +
                '}';
    }
}
